.class Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;
.super Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidOverlay;
.source "MraidExpandedView.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;",
        ":",
        "Lcom/burstly/lib/component/networkcomponent/IActivityLifeCycleAware;",
        ">",
        "Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidOverlay",
        "<TT;>;",
        "Ljava/lang/Runnable;"
    }
.end annotation


# static fields
.field static final LOG:Lcom/burstly/lib/util/LoggerExt;

.field static final TAG:Ljava/lang/String;


# instance fields
.field private mExpandedProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;

.field private mMetrics:Landroid/util/DisplayMetrics;

.field private mUiHandler:Landroid/os/Handler;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 48
    const-class v0, Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->TAG:Ljava/lang/String;

    .line 53
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-void
.end method

.method constructor <init>(Landroid/view/ViewGroup;Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;)V
    .locals 3
    .parameter "parent"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/view/ViewGroup;",
            "TT;)V"
        }
    .end annotation

    .prologue
    .line 87
    .local p0, this:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView<TT;>;"
    .local p2, child:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;,"TT;"
    invoke-direct {p0, p2, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidOverlay;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;Landroid/view/ViewGroup;)V

    .line 88
    const/4 v1, 0x0

    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->setApplyInOutAnimation(Z)V

    .line 89
    new-instance v1, Landroid/os/Handler;

    invoke-direct {v1}, Landroid/os/Handler;-><init>()V

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->mUiHandler:Landroid/os/Handler;

    .line 90
    new-instance v1, Landroid/util/DisplayMetrics;

    invoke-direct {v1}, Landroid/util/DisplayMetrics;-><init>()V

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->mMetrics:Landroid/util/DisplayMetrics;

    .line 91
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->getContext()Landroid/content/Context;

    move-result-object v1

    const-string v2, "window"

    invoke-virtual {v1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    .line 92
    .local v0, windowManager:Landroid/view/WindowManager;
    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->mMetrics:Landroid/util/DisplayMetrics;

    invoke-virtual {v1, v2}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 93
    return-void
.end method

.method constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;)V
    .locals 2
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TT;)V"
        }
    .end annotation

    .prologue
    .line 77
    .local p0, this:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView<TT;>;"
    .local p1, child:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;,"TT;"
    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    const v1, 0x1020002

    invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-direct {p0, v0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;-><init>(Landroid/view/ViewGroup;Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;)V

    .line 78
    return-void
.end method

.method private createLayoutParams(Ljava/lang/Integer;Ljava/lang/Integer;)Landroid/widget/FrameLayout$LayoutParams;
    .locals 5
    .parameter "desiredWidth"
    .parameter "desiredHeight"

    .prologue
    .line 140
    .local p0, this:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView<TT;>;"
    const/4 v1, 0x0

    .line 141
    .local v1, layoutParams:Landroid/widget/FrameLayout$LayoutParams;
    invoke-static {p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->isValidValue(Ljava/lang/Integer;Ljava/lang/Integer;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 142
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result v3

    invoke-direct {p0, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->exceedsMaxWidth(I)Z

    move-result v3

    if-eqz v3, :cond_0

    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v2

    .line 144
    .local v2, width:I
    :goto_0
    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result v3

    invoke-direct {p0, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->exceedsMaxHeight(I)Z

    move-result v3

    if-eqz v3, :cond_1

    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v0

    .line 146
    .local v0, height:I
    :goto_1
    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    .end local v1           #layoutParams:Landroid/widget/FrameLayout$LayoutParams;
    invoke-direct {v1, v2, v0}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 150
    .end local v0           #height:I
    .end local v2           #width:I
    .restart local v1       #layoutParams:Landroid/widget/FrameLayout$LayoutParams;
    :goto_2
    const/16 v3, 0x11

    iput v3, v1, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    .line 151
    return-object v1

    .line 142
    :cond_0
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result v3

    invoke-static {v3}, Lcom/burstly/lib/util/Utils;->scale(I)F

    move-result v3

    float-to-int v2, v3

    goto :goto_0

    .line 144
    .restart local v2       #width:I
    :cond_1
    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result v3

    invoke-static {v3}, Lcom/burstly/lib/util/Utils;->scale(I)F

    move-result v3

    float-to-int v0, v3

    goto :goto_1

    .line 148
    .end local v2           #width:I
    :cond_2
    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    .end local v1           #layoutParams:Landroid/widget/FrameLayout$LayoutParams;
    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v3

    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v4

    invoke-direct {v1, v3, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .restart local v1       #layoutParams:Landroid/widget/FrameLayout$LayoutParams;
    goto :goto_2
.end method

.method private exceedsMaxHeight(I)Z
    .locals 2
    .parameter "desiredHeight"

    .prologue
    .line 182
    .local p0, this:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView<TT;>;"
    invoke-static {p1}, Lcom/burstly/lib/util/Utils;->scale(I)F

    move-result v0

    float-to-int v0, v0

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->getParentView()Landroid/view/ViewGroup;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/ViewGroup;->getMeasuredHeight()I

    move-result v1

    if-le v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private exceedsMaxWidth(I)Z
    .locals 2
    .parameter "desiredWidth"

    .prologue
    .line 172
    .local p0, this:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView<TT;>;"
    invoke-static {p1}, Lcom/burstly/lib/util/Utils;->scale(I)F

    move-result v0

    float-to-int v0, v0

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->getParentView()Landroid/view/ViewGroup;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/ViewGroup;->getMeasuredWidth()I

    move-result v1

    if-le v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private static isValidValue(Ljava/lang/Integer;Ljava/lang/Integer;)Z
    .locals 1
    .parameter "desiredWidth"
    .parameter "desiredHeight"

    .prologue
    .line 162
    if-eqz p1, :cond_0

    if-eqz p0, :cond_0

    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-lez v0, :cond_0

    invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-lez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method


# virtual methods
.method protected bridge synthetic addChildToLayout(Landroid/view/ViewGroup;Landroid/view/View;)Landroid/view/View;
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 44
    .local p0, this:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView<TT;>;"
    check-cast p2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    .end local p2
    invoke-virtual {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->addChildToLayout(Landroid/view/ViewGroup;Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;)Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    move-result-object v0

    return-object v0
.end method

.method protected addChildToLayout(Landroid/view/ViewGroup;Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;)Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;
    .locals 3
    .parameter "containerLayout"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/view/ViewGroup;",
            "TT;)",
            "Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer",
            "<*>;"
        }
    .end annotation

    .prologue
    .line 124
    .local p0, this:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView<TT;>;"
    .local p2, childView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;,"TT;"
    invoke-super {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidOverlay;->addChildToLayout(Landroid/view/ViewGroup;Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;)Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    move-result-object v0

    .line 125
    .local v0, container:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer<*>;"
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->mExpandedProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;->getUseCustomClose()Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-nez v1, :cond_0

    const/4 v1, 0x1

    :goto_0
    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;->setShowCloseIndicator(Z)V

    .line 126
    invoke-virtual {p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->getCloseButtonShowDelay()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;->setShowCloseButtonDelay(J)V

    .line 127
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->mExpandedProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;->getWidth()Ljava/lang/Integer;

    move-result-object v1

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->mExpandedProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;->getHeight()Ljava/lang/Integer;

    move-result-object v2

    invoke-direct {p0, v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->createLayoutParams(Ljava/lang/Integer;Ljava/lang/Integer;)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v1

    invoke-virtual {p2, v1}, Landroid/webkit/WebView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 128
    const/16 v1, 0x82

    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;->requestFocus(I)Z

    .line 129
    return-object v0

    .line 125
    :cond_0
    const/4 v1, 0x0

    goto :goto_0
.end method

.method protected createContainerLayout()Landroid/view/ViewGroup;
    .locals 3

    .prologue
    .local p0, this:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView<TT;>;"
    const/16 v2, 0xff

    .line 97
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView$1;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView$1;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;Landroid/content/Context;)V

    .line 118
    .local v0, layout:Landroid/widget/FrameLayout;
    const/16 v1, 0xc8

    invoke-static {v1, v2, v2, v2}, Landroid/graphics/Color;->argb(IIII)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setBackgroundColor(I)V

    .line 119
    return-object v0
.end method

.method public hideOverlayed()V
    .locals 3

    .prologue
    .line 198
    .local p0, this:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView<TT;>;"
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->getChildView()Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->getScreenOrientationMgr()Lcom/burstly/lib/util/ScreenOrientationManager;

    move-result-object v0

    .line 199
    .local v0, screenOrientationMgr:Lcom/burstly/lib/util/ScreenOrientationManager;
    if-eqz v0, :cond_0

    .line 200
    invoke-virtual {v0}, Lcom/burstly/lib/util/ScreenOrientationManager;->restoreDefaultOrientation()V

    .line 201
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->getChildView()Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->setScreenOrientationMgr(Lcom/burstly/lib/util/ScreenOrientationManager;)V

    .line 203
    :cond_0
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->mUiHandler:Landroid/os/Handler;

    invoke-virtual {v1, p0}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 204
    invoke-super {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidOverlay;->hideOverlayed()V

    .line 205
    return-void
.end method

.method public run()V
    .locals 2

    .prologue
    .line 218
    .local p0, this:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView<TT;>;"
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->getChildView()Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    .line 220
    .local v0, childView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;,"TT;"
    invoke-virtual {v0}, Lcom/burstly/lib/util/UiSafeWebView;->wasDestroyed()Z

    move-result v1

    if-nez v1, :cond_0

    .line 221
    invoke-super {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidOverlay;->showOverlayed()V

    .line 223
    :cond_0
    return-void
.end method

.method setExpandedProperties(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;)V
    .locals 0
    .parameter "expandedProperties"

    .prologue
    .line 213
    .local p0, this:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView<TT;>;"
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->mExpandedProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;

    .line 214
    return-void
.end method

.method public showOverlayed()V
    .locals 5

    .prologue
    .line 187
    .local p0, this:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView<TT;>;"
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->mExpandedProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;

    const-string v3, "Expanded properties must not be null"

    invoke-static {v2, v3}, Lcom/burstly/lib/util/Utils;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 188
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->getChildView()Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v2}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    .line 189
    .local v0, activity:Landroid/app/Activity;
    new-instance v1, Lcom/burstly/lib/util/ScreenOrientationManager;

    invoke-direct {v1, v0}, Lcom/burstly/lib/util/ScreenOrientationManager;-><init>(Landroid/app/Activity;)V

    .line 190
    .local v1, screenOrientationMgr:Lcom/burstly/lib/util/ScreenOrientationManager;
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->getChildView()Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v2, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->setScreenOrientationMgr(Lcom/burstly/lib/util/ScreenOrientationManager;)V

    .line 191
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->mExpandedProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;->getForceOrientation()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->mExpandedProperties:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;

    invoke-virtual {v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ExpandAndOrientationProperties;->getAllowOrientationChange()Ljava/lang/Boolean;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v3

    invoke-virtual {v1, v2, v3}, Lcom/burstly/lib/util/ScreenOrientationManager;->setOrientation(Ljava/lang/String;Z)V

    .line 193
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidExpandedView;->mUiHandler:Landroid/os/Handler;

    const-wide/16 v3, 0x1f4

    invoke-virtual {v2, p0, v3, v4}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 194
    return-void
.end method
